﻿using NewRetail.Application.Components.Warehouse.Entity;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewRetail.Application.Utility
{
    public class InOutWarehousingComparer : IEqualityComparer<InOutWarehousing>
    {
        public bool Equals(InOutWarehousing x, InOutWarehousing y)
        {
            return (x.receiptNo == y.receiptNo);
        }

        public int GetHashCode([DisallowNull] InOutWarehousing obj)
        {
            return obj.receiptNo.ToString().GetHashCode();
        }

    }
}
